Skip to content

Conversation

@xrmx
Copy link
Contributor

@xrmx xrmx commented Oct 13, 2025

Description

This PR introduced support of url exclusion via the env variables OTEL_PYTHON_EXCLUDED_URLS / OTEL_PYTHON_HTTPX_EXCLUDED_URLS.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@xrmx xrmx requested a review from a team as a code owner October 13, 2025 15:25
@xrmx xrmx moved this to Ready for review in @xrmx's Python PR digest Oct 13, 2025
@xrmx xrmx force-pushed the httpx-excluded-urls branch 2 times, most recently from 192060e to 49ad734 Compare October 17, 2025 13:22
@xrmx xrmx force-pushed the httpx-excluded-urls branch from 49ad734 to 62743bd Compare October 29, 2025 10:56
@xrmx
Copy link
Contributor Author

xrmx commented Oct 29, 2025

Rebased and updated tests for both environment variables

Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@xrmx xrmx merged commit b9be76f into open-telemetry:main Oct 30, 2025
647 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in @xrmx's Python PR digest Oct 30, 2025
bisgaard-itis pushed a commit to bisgaard-itis/opentelemetry-python-contrib that referenced this pull request Nov 3, 2025
…EXCLUDED_URLS (open-telemetry#3837)

* httpx: add support for OTEL_PYTHON_EXCLUDED_URLS / OTEL_PYTHON_HTTPX_EXCLUDED_URLS

* Add changelog

* Fix lint

* Revert a change to a teardown, add a comment instead

* Test both environment variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants